@echo off
if "%1"=="hide" goto CmdBegin
start mshta vbscript:createobject("wscript.shell").run("""%~0"" hide",0)(window.close)&&exit
:CmdBegin

rem 找到1940进程，并杀死
for /f "tokens=5" %%i in ('netstat -aon ^| findstr ":1940"') do (
    set n=%%i
)
taskkill /f /pid %n%
cd ../target
java -jar rentHouse.jar

exit